package com.lb.config;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.List;

/**
 * 功能描述: mongo连接配置类<br>
 * @Author: Edward
 * @Date: 2021/7/3 14:45
 */
@Getter
@Setter
@ToString
@ConfigurationProperties(prefix = "mongo.datasource")
public class MongoListProperties {

  private List<MongoList> dbList;

  @Data
  public static class MongoList {
    private String uri;
    private String database;
  }
}